import QtQuick 2.0

Item {
    property alias txt: txtBtn.text
    signal clickBtn()

    id: root
    width: 80
    height: 30
    Rectangle {
        id: checkBtn
        anchors.fill: parent
        border.color: "black"
        color: "#f8b62c"
        Text {
            id: txtBtn
            anchors.centerIn: parent
            font.family: "Microsoft YaHei"
            font.pixelSize: 15
            text: "验证"
        }
        MouseArea {
            anchors.fill: parent
            onClicked: {
                root.clickBtn()
                // console.log(txt + "...")
            }
        }
    }
}
